﻿<navigation:Page 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
	xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
	x:Class="CARE.Actions" 
	Title="Actions Page"
	d:DesignWidth="640" d:DesignHeight="480">
    
	<navigation:Page.Resources>
		<Storyboard x:Name="Storyboard1"/>
		<Style x:Key="ButtonGather" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
									<VisualState x:Name="Unfocused"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Image x:Name="image" Source="Images/basket.png" Stretch="Fill" Cursor="Hand" ToolTipService.ToolTip="Socialworkers can gather data from community">
								<Image.OpacityMask>
									<ImageBrush/>
								</Image.OpacityMask>
								<Image.Projection>
									<PlaneProjection/>
								</Image.Projection>
							</Image>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
        
		<Style x:Key="ButtonDisease" TargetType="HyperlinkButton">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="HyperlinkButton">
						<StackPanel x:Name="stackPanel" Orientation="Vertical">
							<StackPanel.Background>
								<RadialGradientBrush>
									<GradientStop Offset="1"/>
									<GradientStop Color="White"/>
								</RadialGradientBrush>
							</StackPanel.Background>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
									<VisualState x:Name="Unfocused"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)">
												<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="-158"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationZ)">
												<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="180"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)">
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="86"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<ContentPresenter Height="22" VerticalAlignment="Center" Margin="45,0,50,0" HorizontalAlignment="Center" d:IsHidden="True"/>
							<Image x:Name="image" Height="152" Margin="-1,0,1,0" Width="153" Source="Images/DNA.png" Stretch="Fill" Cursor="Hand">
								<Image.Projection>
									<PlaneProjection/>
								</Image.Projection>
							</Image>
						</StackPanel>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="FontSize" Value="18.667"/>
			<Setter Property="Foreground" Value="#FF92D00C"/>
		</Style>		
		
		<Style x:Key="ButtonSocNetwork" TargetType="HyperlinkButton">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="HyperlinkButton">
						<StackPanel x:Name="stackPanel" Orientation="Vertical">
							<StackPanel.Background>
								<RadialGradientBrush>
									<GradientStop Offset="1"/>
									<GradientStop Color="White"/>
								</RadialGradientBrush>
							</StackPanel.Background>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
									<VisualState x:Name="Unfocused"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)">
												<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="-158"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationZ)">
												<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="180"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)">
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="86"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<ContentPresenter Height="22" VerticalAlignment="Center" Margin="45,0,50,0" HorizontalAlignment="Center" d:IsHidden="True"/>
							<Image x:Name="image" Height="152" Margin="-1,0,1,0" Width="153" Source="Images/social-network2.png" Stretch="Fill" Cursor="Hand">
								<Image.Projection>
									<PlaneProjection/>
								</Image.Projection>
							</Image>
						</StackPanel>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="FontSize" Value="18.667"/>
			<Setter Property="Foreground" Value="#FF92D00C"/>
		</Style>	
		
		<Style x:Key="ButtonSpreadWiz" TargetType="HyperlinkButton">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="HyperlinkButton">
						<StackPanel x:Name="stackPanel" Orientation="Vertical">
							<StackPanel.Background>
								<RadialGradientBrush>
									<GradientStop Offset="1"/>
									<GradientStop Color="White"/>
								</RadialGradientBrush>
							</StackPanel.Background>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
									<VisualState x:Name="Unfocused"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)">
												<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="-158"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationZ)">
												<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="180"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)">
												<EasingDoubleKeyFrame KeyTime="00:00:01" Value="86"/>
												<EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<ContentPresenter Height="22" VerticalAlignment="Center" Margin="45,0,50,0" HorizontalAlignment="Center" d:IsHidden="True"/>
							<Image x:Name="image" Height="152" Margin="-1,0,1,0" Width="153" Source="Images/chart.png" Stretch="Fill" Cursor="Hand">
								<Image.Projection>
									<PlaneProjection/>
								</Image.Projection>
							</Image>
						</StackPanel>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="FontSize" Value="18.667"/>
			<Setter Property="Foreground" Value="#FF92D00C"/>
		</Style>

        <Style x:Key="ButtonInoculationStrategies" TargetType="HyperlinkButton">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="HyperlinkButton">
                        <StackPanel x:Name="stackPanel" Orientation="Vertical">
                            <StackPanel.Background>
                                <RadialGradientBrush>
                                    <GradientStop Offset="1"/>
                                    <GradientStop Color="White"/>
                                </RadialGradientBrush>
                            </StackPanel.Background>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused"/>
                                    <VisualState x:Name="Unfocused"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)">
                                                <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:01" Value="-158"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationZ)">
                                                <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:01" Value="180"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)">
                                                <EasingDoubleKeyFrame KeyTime="00:00:01" Value="86"/>
                                                <EasingDoubleKeyFrame KeyTime="00:00:01.9000000" Value="0"/>
                                            </DoubleAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed"/>
                                    <VisualState x:Name="Disabled"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <ContentPresenter Height="22" VerticalAlignment="Center" Margin="45,0,50,0" HorizontalAlignment="Center" d:IsHidden="True"/>
                            <Image x:Name="image" Height="152" Margin="-1,0,1,0" Width="153" Source="Images/280.png" Stretch="Fill" Cursor="Hand">
                                <Image.Projection>
                                    <PlaneProjection/>
                                </Image.Projection>
                            </Image>
                        </StackPanel>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="FontSize" Value="18.667"/>
            <Setter Property="Foreground" Value="#FF92D00C"/>
        </Style>
    
    </navigation:Page.Resources>
	
	<Grid x:Name="LayoutRoot" >
		<VisualStateManager.CustomVisualStateManager>
			<ic:ExtendedVisualStateManager/>
		</VisualStateManager.CustomVisualStateManager>
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="VisualStateGroup">
				<VisualStateGroup.Transitions>
					<VisualTransition GeneratedDuration="00:00:00">
						<VisualTransition.GeneratedEasingFunction>
							<CircleEase EasingMode="EaseInOut"/>
						</VisualTransition.GeneratedEasingFunction>
					</VisualTransition>
				</VisualStateGroup.Transitions>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}" >

			<StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">

				<TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
					Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"><LineBreak/><Run Text="With this Control Panel You can easily navigate to "/><Run Text="any "/><Run Text="option of CARE"/><LineBreak/><Run Text=""/><LineBreak/></TextBlock>

			</StackPanel>

		</ScrollViewer>
		<Grid Height="352" Margin="-16,122,0,0" VerticalAlignment="Top">
			<Grid.RowDefinitions>
				<RowDefinition Height="0.5*"/>
				<RowDefinition Height="0.5*"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="0.333*"/>
				<ColumnDefinition Width="0.333*"/>
				<ColumnDefinition Width="0.333*"/>
			</Grid.ColumnDefinitions>

            <StackPanel Orientation="Vertical" MaxWidth="180" Margin="22,10,0,16" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1" >
                <!-- <TextBlock Height="27" FontSize="21.333" Foreground="#FF92D00C" TextWrapping="Wrap" HorizontalAlignment="Center"><Run Text="T"/><Run Text="rack"/></TextBlock>
				<Canvas x:Name="canvas" Height="110" Margin="0,5,0,0" Width="175">
					<Canvas.Background>
						<ImageBrush ImageSource="Images/chart.png"/>
					</Canvas.Background>
				</Canvas> -->
            </StackPanel>

            <StackPanel Orientation="Vertical" MaxWidth="180" Margin="49,0,0,8" HorizontalAlignment="Center" Grid.Column="2" VerticalAlignment="Center" >
                <TextBlock Height="22" VerticalAlignment="Center" FontSize="18.667" Foreground="#FF92D00C" Text="Gather" TextWrapping="Wrap" Width="64"/>
                <Button Height="141" Margin="0,5,0,0" Style="{StaticResource ButtonGather}" Width="116" Content="Button"/>
            </StackPanel>

            <HyperlinkButton NavigateUri="/DiseaseModel" TargetName="ContentFrame" Height="176" Margin="36,0,30,0" MaxWidth="180" Style="{StaticResource ButtonDisease}" VerticalAlignment="Center" Content="Model" Foreground="{x:Null}" BorderBrush="{x:Null}" Background="Black"/>
            <HyperlinkButton NavigateUri="/SocialNetworks" TargetName="ContentFrame" Height="176" Margin="35,0" MaxWidth="180" Style="{StaticResource ButtonSocNetwork}" VerticalAlignment="Center" Content="Model" Foreground="{x:Null}" BorderBrush="{x:Null}" Background="Black" Grid.Column="1"/>
            <HyperlinkButton NavigateUri="/InoculationStrategies/InoculationStrategies" TargetName="ContentFrame" Height="176" Margin="35,0" MaxWidth="180" Style="{StaticResource ButtonInoculationStrategies}" VerticalAlignment="Center" Content="Model" Foreground="{x:Null}" BorderBrush="{x:Null}" Background="Black" Grid.Row="1" Grid.Column="0"/>
            <HyperlinkButton NavigateUri="/SpreadVizualization/SpreadVizualization" TargetName="ContentFrame" Height="176" Margin="35,0" MaxWidth="180" Style="{StaticResource ButtonSpreadWiz}" VerticalAlignment="Center" Content="Model" Foreground="{x:Null}" BorderBrush="{x:Null}" Background="Black" Grid.Row="1" Grid.Column="1"/>
            <Image Margin="0" Grid.Column="2" Grid.Row="1" Source="Images/ReportsIcon.png" Stretch="UniformToFill" RenderTransformOrigin="0.267,0.16" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" Height="150"/>
        </Grid>
    </Grid>
    
</navigation:Page>